package com.spark.lola.service.pur.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.spark.lola.entity.pur.ReturnOrderProduct;
import com.spark.lola.mapper.pur.ReturnOrderProductMapper;
import com.spark.lola.service.pur.IReturnOrderProductService;
import com.spark.lola.support.mybatis.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 * @author dengyejun
 * @since 2020-05-18
 */
@Service
public class ReturnOrderProductServiceImpl extends BaseServiceImpl<ReturnOrderProductMapper, ReturnOrderProduct> implements IReturnOrderProductService {

    @Override
    public List<ReturnOrderProduct> getDetails(Long orderId) {
        QueryWrapper<ReturnOrderProduct> query =new QueryWrapper<>();
        query.eq("parent_id",orderId);
        return baseMapper.selectList(query);
    }
}
